package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 新建角色DTO
 * @author kaka
 * @time 2018-9-11 17:05
 */
@Getter
@Setter
@ToString
public class RoleAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1246579329088879463L;

    /**
     * 角色名称
     */
    @NotBlank(message = "{dto.msg.roleAdd.roleName.NotBlank}")
    @Length(min = 1, max = 20, message = "{dto.msg.roleAdd.roleName.Length}")
    private String roleName;

}
